Sleep shaping refers to intentionally guiding a baby or young child towards developing healthy sleep habits and routines. It involves creating a comfortable sleep environment, establishing consistent bedtime and naptime schedules, and implementing techniques to help the child fall asleep and stay asleep more easily.